﻿using System;
using System.Collections.Generic;
using TCPSockets.ServerEvents.Handlers;

namespace TCPSockets.Interfaces
{
    interface IServer
    {
        int ClientCount { get; }

        int Port { get; set; }

        bool Enabeld { get; set; }

        CTCPClient this[int Index] { get; }

        event OnClientConnectedEventHandler OnClientConnected;
        event OnClientDisconnectedEventHandler OnClientDisconnected;
        event OnDataSendEventHandle OnDataSend;
        event OnErrorEventHandler OnError;
        event OnReceivedDataEventHandler OnReceiveData;
        event OnStartEventHandler OnStart;
        event OnStopEventHandler OnStop;
    }
}
